package com.heifeng.cloudshelf.mvp.programme.contract;

import androidx.recyclerview.widget.RecyclerView;
import android.widget.LinearLayout;

import com.heifeng.cloudshelf.base.IBasePresenter;
import com.heifeng.cloudshelf.base.IBaseView;
import com.heifeng.cloudshelf.event.DialogSpecTextEvent;

/**
 * Created by Administrator on 2019/9/11.
 */

public class ProgrammeActivityContract {
    public interface View extends IBaseView {
        RecyclerView getRecyclerView1();

        void onStartAnim();

        RecyclerView getRecyclerView();

        void onBelowAnim();

        void onResumeAnim();

        void onOpenDetailAnim();

        LinearLayout getLBack();

        int getType();

        void setListSize(int count);

        void showError(boolean isNull);

        int getTemplateId();

    }

    public interface Presenter extends IBasePresenter<View> {
        void init();

        void initRecyclerView(Object obj);

        void getSpecList(int templateId);

        void toSearchBySpecOption(int templateId);

        void getTableModelHouse();

        void putSpecTextsInGroup(int groupId, int specTextsId, DialogSpecTextEvent event);

        boolean isVisBottom(RecyclerView recyclerView);

        void nextPage(int templateId);

        void setPageIndex(int pageIndex);

        void setSpecList(int position,int specTextId,int parentId);

        void setOpenSpSpecList(boolean isDismiss,boolean isChanged);

        void keepSelectSpSpec();
    }
}
